<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{commons/public::common-public}">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
     <table class="layui-table" id="currentTableId" lay-filter="currentTableFilter">
         <thead>
         <tr>
             <th>ID</th>
             <th>论坛标题</th>
             <th>用户名称</th>
             <th>评论内容</th>
             <th>创建时间</th>
             <th lay-data="{fixed: 'right', width: 150, align: 'center', toolbar: '#templet-demo-theads-tool'}" >操作</th>
         </tr>
         </thead>
         <thead>
         <tr th:each="u:${list}">
             <td th:text="${u.id}"></td>
             <td th:text="${u.title}"></td>
             <td th:text="${u.userName}"></td>
             <td th:text="${u.content}"></td>
             <td th:text="${u.createTime}"></td>

             <td lay-data="{fixed: 'right', width: 150, align: 'center', toolbar: '#templet-demo-theads-tool'}">
                 <a class="layui-btn layui-btn-primary layui-btn-xs layui-btn-xs1" th:href="@{/comment/deleteComment(id=${u.id})}"  onclick="return confirm('确定要删除吗')">删除</a>
             </td>
         </tr>
         </thead>
     </table>

</body>
</html>